cmake_minimum_required(VERSION 2.8)
PROJECT(LEGION)

set(Boost_USE_STATIC_LIBS   OFF)
set(Boost_USE_MULTITHREADED ON)
find_package( Boost 1.41.0 COMPONENTS thread program_options )
include_directories(${Boost_INCLUDE_DIRS})

find_package(Doxygen)

find_package(CUDA)

set(CMAKE_CXX_FLAGS "-g -Wall")


include_directories( ${LEGION_SOURCE_DIR}/include ) 
link_directories (${LEGION_BINARY_DIR}/src) 

add_subdirectory(src)

add_subdirectory(examples)